﻿using HPIT_Library_Modal;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace HPIT_Library_BLL
{
    public class bookManger
    {
        public static Books SelectID(int id)
        {
            return HPIT_Library_DAL.bookSerivers.SelectID(id);
        }
            public static int Update(Books books)
        {
            return HPIT_Library_DAL.bookSerivers.Update(books);
        }
        public static DataTable Select(string BookName = "", string BookAuthor = "", int CategoryId = 0)
        {
            return HPIT_Library_DAL.bookSerivers.Select(BookName, BookAuthor, CategoryId);
        }
        public static List<Books> GetBooksPageList(BooksSerichModel serichModel, int PageIndex, int PageSize, ref int TotalCount)
        {
            return HPIT_Library_DAL.bookSerivers.GetBooksPageList(serichModel, PageIndex, PageSize,ref TotalCount);
        }
    }
}
